using QQZiFramework;

/// <summary>
/// 流程当前的用户（侯选人与处理人）
/// </summary>
[DBTable(TableName = "flow_ru_users")]
    public class FlowInstanceUsers:IDBEntity
    {
        [DBField(Usage = DBFieldUsage.PrimaryKey, Identity = true)]
        public Int64 id { get; set; }

        /// <summary>
        /// 流程实例id
        /// </summary>
        [DBField(FieldName ="process_instance_Id")]
        public string processInstanceId { get; set; }

        /// <summary>
        /// 当前活动任务id
        /// </summary>
        [DBField(FieldName ="task_id")]
        public string taskId { get; set; }
        
        /// <summary>
        /// 当前活动任务名称
        /// </summary>
        [DBField(FieldName ="task_name")]
        public string taskName { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        [DBField(FieldName ="user_type")]
        public string userType { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        [DBField(FieldName ="user_id")]
        public string userId { get; set; }

        public enum UserType { candidate = 2, assignee = 1 }
    }
